numbers = [45, 12, 78, 23, 56, 89, 34, 67]

def get_first_three(items):
    return items[:3]

def get_last_two(items):
    return items[:-2]

def get_even_positions(items):
    return items[0::2]

def sort_ascending(items):
    return sorted(items)

def filter_above_value(numbers, threshold):
    return [i for i in numbers if i >=threshold]

def main():
    print("First three:", get_first_three(numbers))
print("Last two:",get_last_two(numbers))
print("Even positions:",get_even_positions(numbers))

print("\n")
sorted_nums = sort_ascending(numbers)
print(f"Original: {numbers}")
print(f"Sorted: {sorted_nums}")

print("\n")
above_50 = filter_above_value(numbers, 50)
print(f"Above 50: {above_50}")
if __name__ =="__main__":
    main()
